//删除商品

module.exports = (req,res) =>{
    console.log(req.body);
    model.Product.deleteOne({productId:req.body.productId}).then(() =>{
        // console.log(result);
        res.send({
            code:"200",
            status:"405",
            msg:"商品删除成功"
        })
    }).catch(err => {
        console.log("delete",err);
        res.send({
            code:"200",
            status:"406",
            msg:"商品删除失败"
        })
    })
}